<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>巨能工程项目BIM管理系统</title>
    <link rel="stylesheet" href="./assets/css/reset.css">
    <link rel="stylesheet" href="./assets/css/index.css">
    <script src="./assets/js/qrcode.min.js"></script>
</head>

<body>
    <div class="download-logo">
        <img src="./assets/img/logo.png" alt="">
    </div>
    <div class="download-title">巨能BIM管理手机APP</div>
    <button class="download-bt-android">
        <img src="./assets/img/android.png" alt="">
        <span>Android版下载</span>
    </button>
    <button class="download-bt-ios" disabled="disabled">
        <img src="./assets/img/ios.png" alt="">
        <span>iOS版暂未开放</span>
    </button>
    <div id="qrcode" class="download-qrcode"></div>
    <div class="download-tips">扫描二维码 直接下载</div>
    <div class="download-description">介绍内容，我是一段描述的介绍文字。介绍内容，我是一段描述的介绍文字。介绍内容，我是一段描述的介绍文字。介绍内容，我是一段描述的介绍文字。</div>
    <div class="mask mask-transparent">
        <img src="./assets/img/guide.png" alt="">
    </div>
</body>
<script>
    new QRCode(document.getElementById("qrcode"), {
        text: window.location.href,
        width: 115,
        height: 115,
        correctLevel : QRCode.CorrectLevel.L
    });
    // 修复ios active伪类无效
    document.body.addEventListener('touchstart', function () { })
    var u = navigator.userAgent;
    var isWx = !!(u.match(/MicroMessenger/i) == 'MicroMessenger');  //微信
    if (isWx) {
        document.querySelector('.mask').style.display = "block"
        document.querySelector('.mask').addEventListener('click', function () {
            document.querySelector('.mask').style.display = "none"
        })
        // 右移动画
        setTimeout(function () {
            document.querySelector('.mask img').style.left = '20%'
        }, 0);
    }
    document.querySelector('.download-bt-android').addEventListener('click', function () {
        window.location.href = window.location.origin + '/assets/a/app.apk'
    })
</script>

</html>